home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / GPC2952B.ZIP / doc / gpc / docdemos / andbug.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-02-09  |  205 b   |  10 lines

  1. program AndBug;
  2. var
  3.   p: ^Integer;
  4. begin
  5.   New (p);
  6.   ReadLn (p^);
  7.   if (p <> nil) and (p^ < 42) then  { This is NOT safe! }
  8.     WriteLn ('You''re lucky. But the test could have crashed...')
  9. end.
  10.